#include <sys/time.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "task.h"

#define  LOG_TAG    "task"
#define  LOGI(...)  printf(__VA_ARGS__)
#define  LOGW(...)  fprintf(stderr,__VA_ARGS__)
#define  LOGE(...)  fprintf(stderr,__VA_ARGS__)

pthread_t task_start(void(*fun)(void*), void*p){
	pthread_t thread_spice;
	pthread_create(&thread_spice, NULL, fun, p);
	return thread_spice;
}

